package com.omronservice.vo;

/**
 * @Description: RequestMessage
 * @Author: lfr
 * @CreateDate: 2019/09/12$ 17:38$
 * @UpdateUser: lfr
 * @UpdateDate: 2019/09/12$ 17:38$
 * @UpdateRemark: 修改内容
 * @Version: 1.0
 */
public class RequestMessage {
     private String Header;
     private String body;

    public String getHeader() {
        return Header;
    }

    public void setHeader(String header) {
        this.Header = header;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }
    public static String requestMessageUtil(String MESSAGENAME, String TRANSACTIONID) {
        Header header=new Header( MESSAGENAME, TRANSACTIONID, "12", "Cell", "EIS");
        Body body=new Body( "jwhan",  "29") ;
        RequestMessage requestMessage=new RequestMessage(header.toString(), body.toString());
        return requestMessage.toString();
    }
    public RequestMessage() {
    }
    public RequestMessage(String header, String body) {
        this.Header = header;
        this.body = body;
    }

    @Override
    public String toString() {
        return "{" +
                "   \"Header\": " + Header +
                ",     \"Body\": " + body +
                '}';
    }
}
